// import ruless from '../role/config';
// let a = localStorage.false

// let false = (a == 1)?true:false

// if(a === 1){
//   false = false
// }else{

// }
// const b = 5
// // const c = 2
// const false = !!a
export default {
  targetForm: {
    ref: null,
    title: '应聘意向',
    image: 'images/apply.png',
    formData: {
      // 应聘单位
      apply_college: '',
      // 应聘岗位
      apply_post: '',
      // 团队名称
      apply_team: ''
    },
    fieldList: [
      {
        label: '应聘单位',
        value: 'apply_college',
        type: 'select-arr',
        comp: 'el-select',
        list: 'applyCollegeList',
        bind: { filterable: true },
        disabled: true,
        arrLabel: 'name',
        arrKey: 'id'
      },
      {
        label: '应聘岗位',
        value: 'apply_post',
        type: 'select-arr',
        comp: 'el-select',
        list: 'applyPostList',
        bind: { disabled: false, filterable: true },
        disabled: false,
        arrLabel: 'name',
        arrKey: 'id'
      },
      {
        label: '引进后拟加入团队',
        value: 'apply_team',
        type: 'input',
        comp: 'el-input',
        disabled: false,
        bind: { clearable: true },
        labelWidth: '150px'
      }
    ],
    rules: {
      apply_college: [
        { required: true, message: '请选择应聘单位', trigger: 'change' }
      ],
      apply_post: [
        { required: true, message: '请选择应聘岗位', trigger: 'change' }
      ],
      apply_team: [
        { required: true, message: '请输入引进后拟加入团队', trigger: 'blur' }
      ]
    },
    listTypeInfo: {
      // 应聘单位下拉数据
      applyCollegeList: [],
      // 应聘岗位下拉数据
      applyPostList: []
    }
  },
  userForm: {
    ref: null,
    title: '个人信息',
    image: 'images/userinfo.png',
    labelWidth: '80px',
    right: true,
    formData: {
      // 姓名
      name: '',
      // 英文名
      english_name: '',
      // 性别
      sex: '',
      // 年龄
      age: '',
      // 国籍
      nationality: '',
      // 籍贯
      native_place: '',
      // 出生年月
      birth_time: '',
      // 民族
      nation: '',
      // 政治面貌
      political_outlook: '',
      // 身份证（护照号）
      id_card: '',
      // 手机号码
      mobile: '',
      // 邮箱
      email: '',
      // 最高学位
      degree: '',
      // 职称
      current_title: '',
      // 职务
      duties: '',
      // 从事专业
      school: '',
      // 研究方向
      research: '',
      // 工作单位
      subject: '',
      avatar: '',
      year_salary: '',
      settle_down: '',
      startup: ''

    },
    fieldList: [
      {
        label: '姓名',
        value: 'name',
        type: 'input',
        comp: 'el-input',
        disabled: false,
        bind: { clearable: true }
      },
      {
        label: '英文名',
        value: 'english_name',
        type: 'input',
        comp: 'el-input',
        disabled: false,
        bind: { clearable: true }
        // labelWidth: '150px'
      },
      {
        label: '性别',
        value: 'sex',
        type: 'select-arr',
        comp: 'el-select',
        list: 'sexList',
        bind: { disabled: false, filterable: true },
        arrLabel: 'key',
        disabled: false,
        arrKey: 'value'
      },
      {
        label: '年龄',
        value: 'age',
        type: 'input',
        comp: 'el-input',
        disabled: false,

        bind: { clearable: true }
      },
      {
        label: '国籍',
        value: 'nationality',
        type: 'input',
        comp: 'el-input',
        disabled: false,

        bind: { clearable: true }
      },
      {
        label: '籍贯',
        value: 'native_place',
        type: 'input',
        comp: 'el-input',
        disabled: false,

        bind: { clearable: true }
        // labelWidth: '150px'
      },
      {
        label: '出生年月',
        value: 'birth_time',
        type: 'date',
        disabled: false,

        bind: { valueFormat: 'yyyy-MM-dd' },
        comp: 'el-date-picker'
      },
      {
        disabled: false,

        label: '民族',
        value: 'nation',
        type: 'input',
        comp: 'el-input',
        bind: { clearable: true }
      },
      {
        disabled: false,

        label: '政治面貌',
        value: 'political_outlook',
        type: 'input',
        comp: 'el-input',
        bind: { clearable: true }
      },
      {
        disabled: false,

        label: '最高学位',
        value: 'degree',
        type: 'input',
        comp: 'el-input',
        bind: { clearable: true }
      },
      {
        disabled: false,

        label: '手机号码',
        value: 'mobile',
        type: 'input',
        comp: 'el-input',
        bind: { clearable: true }
      },
      {
        disabled: false,

        label: '邮箱',
        value: 'email',
        type: 'input',
        comp: 'el-input',
        bind: { clearable: true }
      },

      {
        disabled: false,

        label: '职称',
        value: 'current_title',
        type: 'input',
        comp: 'el-input',
        bind: { clearable: true }
        // labelWidth: '150px'
      },
      {
        disabled: false,

        label: '职务',
        value: 'duties',
        type: 'input',
        comp: 'el-input',
        bind: { clearable: true }
        // widthSize: 2
      },
      {
        disabled: false,

        label: '身份证（护照号）',
        value: 'id_card',
        type: 'input',
        comp: 'el-input',
        bind: { clearable: true },
        labelWidth: '150px',
        widthSize: 2
      },
      {
        disabled: false,

        label: '从事专业',
        value: 'school',
        type: 'input',
        comp: 'el-input',
        bind: { clearable: true }
      },
      {
        disabled: false,

        label: '研究方向',
        value: 'research',
        type: 'input',
        comp: 'el-input',
        bind: { clearable: true }
        // labelWidth: '150px'
      },
      {
        disabled: false,

        label: '工作单位',
        value: 'subject',
        type: 'input',
        comp: 'el-input',
        bind: { clearable: true },
        widthSize: 2
      }
      // {
      //   label: '年薪',
      //   value: 'year_salary',
      //   type: 'input',
      //   comp: 'el-input',
      //   format: '***万元',
      //   bind: { clearable: true }
      // },
      // {
      //   label: '安家费',
      //   value: 'settle_down',
      //   type: 'input',
      //   comp: 'el-input',
      //   format: '***万元',
      //   bind: { clearable: true }
      //   // labelWidth: '150px'
      // },
      // {
      //   label: '科研启动费',
      //   value: 'startup',
      //   type: 'input',
      //   comp: 'el-input',
      //   format: '***万元',
      //   bind: { clearable: true },
      //   widthSize: 2
      // }
    ],
    rules: {
      name: [{ required: true, message: '请输入姓名', trigger: 'blur' }],
      english_name: [
        { required: true, message: '请输入英文名', trigger: 'blur' }
      ],
      sex: [{ required: true, message: '请选择性别', trigger: 'change' }],
      age: [
        { required: true, message: '请输入年龄', trigger: 'blur' }
        // { type: 'number', message: '年龄必须为数字' }
      ],
      nationality: [{ required: true, message: '请输入国籍', trigger: 'blur' }],
      native_place: [
        { required: true, message: '请输入籍贯', trigger: 'blur' }
      ],
      birth_time: [
        { required: true, message: '请选择出生日期', trigger: 'change' }
      ],
      nation: [{ required: true, message: '请输入民族', trigger: 'blur' }],
      political_outlook: [
        { required: true, message: '请输入政治面貌', trigger: 'blur' }
      ],
      id_card: [
        { required: true, message: '请输入身份证（护照号）', trigger: 'blur' }
      ],
      mobile: [
        { required: true, message: '请输入手机号码', trigger: 'blur' },
        // { min: 11, max: 11, message: '请输入11位手机号码', trigger: 'blur' },
        // {
        //   pattern:
        //     /^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\d{8}$/,
        //   message: '请输入正确的手机号码'
        // }
      ],
      email: [
        { required: true, message: '请输入邮箱', trigger: 'blur' },
        // {
        //   pattern:
        //     /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((.[a-zA-Z0-9_-]{2,3}){1,2})$/,
        //   message: '邮箱格式错误'
        // }
      ],
      degree: [{ required: true, message: '请输入最高学位', trigger: 'blur' }],
      current_title: [
        { required: true, message: '请输入职称', trigger: 'blur' }
      ],
      duties: [{ required: true, message: '请输入职务', trigger: 'blur' }],
      school: [{ required: true, message: '请输入从事专业', trigger: 'blur' }],
      research: [
        { required: true, message: '请输入研究方向', trigger: 'blur' }
      ],
      subject: [{ required: true, message: '请输入工作单位', trigger: 'blur' }]
    },
    listTypeInfo: {
      sexList: [
        { key: '男', value: '0' },
        { key: '女', value: '1' }
      ]
    }
  },
  mateForm: {
    ref: null,
    title: '配偶信息',
    image: 'images/marriage.png',
    formData: {
      // 配偶姓名
      spouse_name: '',
      // 配偶出生年月日
      spouse_birth_time: '',
      // 配偶学历学位
      spouse_degree: '',
      // 工作单位
      spouse_unit: '',
      // 毕业学校
      spouse_school: ''
    },
    fieldList: [
      {
        label: '配偶姓名',
        value: 'spouse_name',
        type: 'input',
        comp: 'el-input',
        disabled: false,

        bind: { clearable: true }
      },
      {
        disabled: false,

        label: '出生年月日',
        value: 'spouse_birth_time',
        type: 'date',
        bind: { valueFormat: 'yyyy-MM-dd' },
        comp: 'el-date-picker',
        labelWidth: '140px'
      },
      {
        disabled: false,

        label: '学历学位',
        value: 'spouse_degree',
        type: 'input',
        comp: 'el-input',
        bind: { clearable: true },
        labelWidth: '130px'
      },
      {
        disabled: false,

        label: '工作单位',
        value: 'spouse_unit',
        type: 'input',
        comp: 'el-input',
        bind: { clearable: true }
      },
      {
        disabled: false,

        label: '毕业学校',
        value: 'spouse_school',
        type: 'input',
        comp: 'el-input',
        bind: { clearable: true },
        widthSize: 1.5
      }
    ],
    rules: {
      // spouse_name: [
      //   { required: true, message: '请输入配偶姓名', trigger: 'blur' }
      // ],
      // spouse_birth_time: [
      //   { required: true, message: '请选择配偶出生日期', trigger: 'blur' }
      // ],
      // spouse_degree: [
      //   { required: true, message: '请输入配偶学历学位', trigger: 'blur' }
      // ],
      // spouse_unit: [
      //   { required: true, message: '请输入工作单位', trigger: 'blur' }
      // ],
      // spouse_school: [
      //   { required: true, message: '请输入毕业学校', trigger: 'blur' }
      // ]
    },
    listTypeInfo: {}
  }
}
// location.reload()
